package org.jeecg.modules.wms.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @Description: 供应商物料关联表
 * @Author: jeecg-boot
 * @Date: 2023-07-18
 * @Version: V1.0
 */
@Data
@TableName("wms_supplier_material")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="wms_supplier_material对象", description="供应商物料关联表")
public class WmsSupplierMaterial implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    /**主键*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    
    /**供应商ID*/
    @ApiModelProperty(value = "供应商ID")
    private String supplierId;
    
    /**物料编码*/
    @Excel(name = "物料编码", width = 15)
    @ApiModelProperty(value = "物料编码")
    private String materialCode;
    
    /**价格*/
    @Excel(name = "价格", width = 15)
    @ApiModelProperty(value = "价格")
    private BigDecimal price;
    
    /**交货周期（天）*/
    @Excel(name = "交货周期", width = 15)
    @ApiModelProperty(value = "交货周期")
    private Integer leadTime;
    
    /**最小订购量*/
    @Excel(name = "最小订购量", width = 15)
    @ApiModelProperty(value = "最小订购量")
    private BigDecimal minOrderQuantity;
    
    /**是否首选（0-否，1-是）*/
    @Excel(name = "是否首选", width = 15, dicCode = "yn")
    @ApiModelProperty(value = "是否首选")
    private Integer isPreferred;

    /**物料单位*/
    @Excel(name = "物料单位", width = 15)
    @ApiModelProperty(value = "物料单位")
    private String unit;
    
    /**物料图片，多张图片路径用逗号分隔*/
    @Excel(name = "物料图片", width = 200)
    @ApiModelProperty(value = "物料图片")
    private String materialImages;
    
    /**备注*/
    @Excel(name = "备注", width = 30)
    @ApiModelProperty(value = "备注")
    private String remark;
    
    /**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
    
    /**创建时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    
    /**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    
    /**更新时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
    
    /**租户ID*/
    @ApiModelProperty(value = "租户ID")
    private String tenantId;
} 